// package: rewords-server-2024
// filename: aiAPI
// author: diogoxiang@gmail.com
// time: 2025/2/11 17:27

package aiAPI

import (
	"github.com/gogf/gf/v2/frame/g"

	"rewords-server-2024/internal/model/input/chat_in"
)

// ChatTxtReq 通用列表请求结构
type ChatTxtReq struct {
	g.Meta `path:"/ai/chat/txt" method:"post" summary:"ai chat txt请求" tags:"aiChat"`
	//Prompt   string `json:"prompt" v:"required#prompt不能为空" dc:"prompt"`
	Messages []chat_in.Message `json:"messages"   dc:"messages"`
	Mid      int64             `json:"mid"      dc:"model id"`
}

// ChatTxtRes 通用列表响应结构
type ChatTxtRes struct {
	chat_in.Choice `json:"content" dc:"content"`
}
